home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Sample Code / Interapplication Communication / MenuScripter 4.0 / Sources / MSAppleEvents.h < prev    next >
Encoding:
Text File  |  1996-07-09  |  823 b   |  29 lines  |  [TEXT/CWIE]

  1. // MSAppleEvents.h
  2. //
  3. // Original version by Jon Lansdell and Nigel Humphreys.
  4. // 4.0 and 3.1 updates by Greg Sutton.
  5. // ©Apple Computer Inc 1996, all rights reserved.
  6.  
  7. #ifndef __MSAPPLEEVENTS__
  8. #define __MSAPPLEEVENTS__
  9.  
  10. #include <Types.h>
  11. #include <Quickdraw.h>
  12. #include <Packages.h>
  13. #include <GestaltEqu.h>
  14. #include <Editions.h>
  15.  
  16. #include "MSToken.h"
  17.  
  18. #define     noRefCon     -1
  19.  
  20. void             InitAppleEvents(void);
  21. void            DoAppleEvent(EventRecord theEvent);
  22.  
  23. pascal OSErr DoOpenApp(const AppleEvent *message,const AppleEvent *reply,long refcon);
  24. pascal OSErr DoOpenDocument( const AppleEvent *theEvent, const AppleEvent *theReply, long refcon );
  25. pascal OSErr MyQuit(const AppleEvent *message,const AppleEvent *reply,long refcon);    
  26. pascal OSErr DoPrintDocuments(const AppleEvent *message, AppleEvent *reply, long refcon);
  27.  
  28.  
  29. #endif